<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>
        ${initParam.AppName}的博客=><c:out value="${requestScope.msg}" default="主页"/>
    </title>
    <%--    <link rel="shortcut icon" href="<c:url value="/favicon.ico"/>" type="image/x-icon">--%>
    <link rel="stylesheet" href="<c:url value="/bootstrap/bootstrap.min.css"/>"/>
    <link rel="stylesheet" href="<c:url value="/css/global.css"/>"/>
    <script src="<c:url value="/js/jquery-3.6.0.slim.min.js"/>"></script>
    <script src="<c:url value="/bootstrap/bootstrap.bundle.min.js"/>"></script>
</head>

<body>
<nav class="navbar navbar-expand-md navbar-light bg-light" style="position: sticky;z-index: 999;top: 0;">
    <%@include file="views/home/nav.jsp" %>
</nav>

<c:choose>
    <c:when test="${not empty requestScope.page}">
        <jsp:include page="${requestScope.page}.jsp"/>
    </c:when>
    <c:otherwise>
        <%@include file="views/home.jsp" %>
    </c:otherwise>
</c:choose>

</body>
</html>